package com.aifund.app.entity.form.regist;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
@ApiModel(description = "手机号注册表单")
public class PhoneRegisterForm {

    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp ="^[1][3,4,5,6,7,8,9][0-9]{9}$", message = "手机号格式有误")
    @ApiModelProperty("手机号")
    private String phone;//手机号

    @NotBlank(message = "密码不能为空")
    @ApiModelProperty("密码")
    private String aiPassword;//密码

    private String inviteCode;//邀请码

    @NotBlank(message = "手机验证码不能为空")
    @ApiModelProperty("手机验证码")
    private String phoneCode;//手机验证码
}
